/**
 * Created by Administrator on 2016/8/4 0004.
 */
$(function () {
    see();
    bindBack();
});
function see() {
    var projectTeamID = location.search;
    var dataSee = {};
    dataSee.projectTeamID = projectTeamID.substring(4);
    dataSee.flag = "see";
    var url = "/TaskCollection/ProjectTeam/projectTeam.wst";
    $.post(url,dataSee,function (result) {
        var leader = result.projectTeam.projectTeamLeader.student_name;
        $("#memberTop span").html("项目小组名称："+result.projectTeam.projectTeam_name+
                                    "&nbsp;&nbsp;&nbsp;&nbsp;容量："+result.projectTeam.projectTeam_size+
                                    "&nbsp;&nbsp;&nbsp;&nbsp;组长："+(leader==null?"待定":leader));
        for(var i=0;i<result.see.length;i++){
            var newrow = "<tr>" +
                "<td class='id'>"+result.see[i].student_id+"</td>" +
                "<td>"+result.see[i].student_name+"</td>" +
                "<td>"+result.see[i].student_gender+"</td>" +
                "<td>"+result.see[i].student_contact+"</td>" +
                "</tr>";
            $("#member tr:last").after(newrow);
        }

    },"json");
}
function bindBack() {
   $("#back").click(function () {
       self.location='/TaskCollection/student/project.jsp';
   }); 
}